#pragma once
#include "DVDPlayer.h"
#include "CDPlayer.h"
#include "VCRPlayer.h"
using namespace std;

class SonyDVDPlayer : public DVDPlayer {
public:
	SonyDVDPlayer(MediaCenter* md) : DVDPlayer(md) {}
	virtual ~SonyDVDPlayer() {}

	virtual void start() {
		if (PlayerChanged("start")) {
			cout << "Sony DVD player started playing!" << endl;
		} else {
			cout << "Couldn't start Sony DVD Player!" << endl;
		}
	}

	virtual void stop() {
		if (PlayerChanged("stop")) {
			cout << "Sony DVD player stopped playing!" << endl;
		} else {
			cout << "Couldn't stop Sony DVD Player!" << endl;
		}
	}

	virtual void forward() {
		if (PlayerChanged("forward")) {
			cout << "Sony DVD player forwarded!" << endl;
		} else {
			cout << "Couldn't forward Sony DVD Player!" << endl;
		}
	}

	virtual void rewind() {
		if (PlayerChanged("rewind")) {
			cout << "Sony DVD player rewound!" << endl;
		} else {
			cout << "Couldn't rewind Sony DVD Player!" << endl;
		}
	}
};

class SonyCDPlayer : public CDPlayer {
public:
	SonyCDPlayer(MediaCenter* md) : CDPlayer(md) {}
	virtual ~SonyCDPlayer() {}
	
	virtual void start() {
		if (PlayerChanged("start")) {
			cout << "Sony CD player started playing!" << endl;
		} else {
			cout << "Couldn't start Sony CD Player!" << endl;
		}
	}

	virtual void stop() {
		if (PlayerChanged("stop")) {
			cout << "Sony CD player stopped playing!" << endl;
		} else {
			cout << "Couldn't stop Sony CD Player!" << endl;
		}
	}

	virtual void forward() {
		if (PlayerChanged("forward")) {
			cout << "Sony CD player forwarded!" << endl;
		} else {
			cout << "Couldn't forward Sony CD Player!" << endl;
		}
	}

	virtual void rewind() {
		if (PlayerChanged("rewind")) {
			cout << "Sony CD player rewound!" << endl;
		} else {
			cout << "Couldn't rewind Sony CD Player!" << endl;
		}
	}
};

class SonyVCRPlayer : public VCRPlayer {
public:
	SonyVCRPlayer(MediaCenter* md) : VCRPlayer(md) {}
	virtual ~SonyVCRPlayer() {}
	
	virtual void start() {
		if (PlayerChanged("start")) {
			cout << "Sony VCR player started playing!" << endl;
		} else {
			cout << "Couldn't start Sony VCR Player!" << endl;
		}
	}

	virtual void stop() {
		if (PlayerChanged("stop")) {
			cout << "Sony VCR player stopped playing!" << endl;
		} else {
			cout << "Couldn't stop Sony VCR Player!" << endl;
		}
	}

	virtual void forward() {
		if (PlayerChanged("forward")) {
			cout << "Sony VCR player forwarded!" << endl;
		} else {
			cout << "Couldn't forward Sony VCR Player!" << endl;
		}
	}

	virtual void rewind() {
		if (PlayerChanged("rewind")) {
			cout << "Sony VCR player rewound!" << endl;
		} else {
			cout << "Couldn't rewind Sony VCR Player!" << endl;
		}
	}
};